//
//  NoticeOperation.m
//  PlayBall
//
//  Created by Jdd‘s macbook on 13-9-23.
//
//

#import "JddNoticeOperation.h"
#import "JddParameterBuilder.h"
@implementation JddNoticeOperation

- (void)main{
    
    @autoreleasepool {
        JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
        NSString *bodyString = [JddParameterBuilder noticeParameter];
        NSData *dataNotice = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
        [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(NoticeOperationResult:) withObject:dataNotice waitUntilDone:NO];
    }
}

@end
